package com.example.test.exception;

import lombok.Data;

@Data
public class ErrorResponse extends RuntimeException{

    private int code;
    private String message;
    private Object data;

    public ErrorResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }

    // Getter 和 Setter 方法

}
